package com.itheima.ui;

import com.itheima.dao.IAccountDao;
import com.itheima.server.IAccountService;
import com.itheima.server.impl.AccountServiceImpl;

/**
 * 模拟一个表现层，用于调用业务层
 */
public class Client {

    /**
     * 获取spring的IOC核心容器，并根据ID获取对象
     * @param args
     */
    public static void main(String[] args) {
        //1.获取核心容器对象
        ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
            IAccountService as = new AccountServiceImpl();
            as.saveAccount();



    }
}
